package com.blitscreen.utils.monitor 
{
	import com.kairos.engine.RTEvent;	
	import com.blitscreen.utils.monitor.AbstractAverageDrawPassMonitorField;
	import com.blitscreen.render.DrawPass;
	import com.bourre.structures.Range;	

	/**
	 * @author 	Cedric Nehemie
	 * @see		AbstractAverageRenderPassMonitorField
	 * @see		com.kairos.utils.monitor.AverageField
	 */
	public class AverageSpritesCountField extends AbstractAverageDrawPassMonitorField 
	{
		/**
		 * 
		 * 
		 * @param 	renderPass
		 * @param 	name
		 * @param 	col
		 * @param 	dr
		 */
		public function AverageSpritesCountField ( renderPass : DrawPass, 
												   name : String = "Untitled", 
												   dr : Range = null, 
												   col : Number = NaN )
		{
			super( renderPass, name, 0, "sprites", dr, -1, NaN );
		}
		
		/**
		 * 
		 * @param 	e
		 */
		override public function registerValue ( e : RTEvent ) : void
		{
			_registerValue( _oDrawPass.getLastDrawSpritesCount() );
		} 
	}
}
